package com.ape.mapsa.converters;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;

import com.ape.mapsa.produccion.model.Maquina;

@FacesConverter(value = "MaquinaConverter")
public class MaquinaConverter implements Converter {
	@Override
	public Object getAsObject(FacesContext context, UIComponent component, String value) {
		Maquina role = new Maquina();
		role.setMaqCodigo("value");
		return role;
	}

	@Override
	public String getAsString(FacesContext context, UIComponent component, Object value) {
		return value.toString();
	}
}
